<template>
  <div style="text-align: center; width: 680px; margin: auto; background: #fff">
    <table
        cellpadding="0"
        cellspacing="0"
        style="
        table-layout: fixed;
        position: relative;
        width: 100%;
        font-family: 仿宋_GB2312;
        font-size: 16px;
        margin: auto;
      "
    >
      <tr style="height: 10px">
        <td
            v-for="item in 100"
            :key="item"
            style="width: 1%; text-align: center"
        />
      </tr>
      <tr style="height: 60px">
        <td colspan="100" style="text-align: center">
          <span id="Lab_title" style="font-size: 24px; font-weight: bold"
          >水利工程质量检测单位乙级资质认定（延续申请）</span
          >
        </td>
      </tr>
        <tr style="height: 50px">
          <td colspan="23" class="TableBorderOther">单位名称</td>
          <td colspan="30" class="TableBorderOther">
            {{formData.czzt}}
          </td>
          <td colspan="23" class="TableBorderOther">联系电话</td>
          <td colspan="30" class="TableBorderRight">
            {{formData.conNum}}
          </td>
        </tr>
        <tr style="height: 70px">
          <td colspan="23" class="TableBorderOther">
            统一社会信用代码<br />(工商营业执照注册号、<br />事业法人登记号)
          </td>
          <td colspan="80" class="TableBorderRight">
            {{formData.czztdm}}
          </td>
        </tr>
        <tr style="height: 50px">
          <td colspan="23" class="TableBorderOther">延续专业</td>
          <td colspan="80" class="TableBorderRight">
            <MultiSelect
                v-model="formData.certMajor"
                :options="majorOptions"
                :disabled="true" />
          </td>
        </tr>
      <tr style="height: 50px">
        <td colspan="23" class="TableBorderBottom">证书编号</td>
        <td colspan="30" class="TableBorderBottom">
          {{formData.certNumCode}}
        </td>
        <td colspan="23" class="TableBorderBottom">发证日期</td>
        <td colspan="30" class="TableBorderRightBottom">
          {{formData.issuDate || formData.certTime}}
        </td>
      </tr>
    </table>
  </div>
</template>

<script>
import businessApi from '@/api/business';
import MultiSelect from "@/components/Select/MultiSelect";

export default {
  props: {
    formData: {
      type: Object,
    },
    disabled: {
      type: Boolean,
      default: false,
    },
  },
  name: "Word2",
  components: { MultiSelect },
  data() {
    return {
      tempFormData: {},
    };
  },
  watch: {
    formData: {
      handler(val) {
        this.tempFormData = val;
      },
      deep: true,
    },
  },
  computed: {
    // 申请专业选项
    majorOptions() {
      return businessApi.getApplyMajors(this.$dict('major').list(), true, true);
    },
  },
}
</script>

<style lang="scss" scoped>
@import '../../../../../../assets/styles/word.scss';

</style>
